const list=[1,2,3,4,5]

const results=list.pop()
console.log(results)  //结果：5
console.log(list)   //[ 1, 2, 3, 4 ]

